/status/syslog/servers/<server_name>

The nodes below this one perform the functions described in this function overview.

Use

Use to view the configuration for this remote logging server.

Parameters

server_name: Name of server

Data Key

The data key contains the name of the server.

Data Type

string

Default Data Value

“”

Default Allowed

False

Request Methods

GET, POST, PUT, DELETE

Examples

GET

curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/status/syslog/servers/name

GET Response

{"httpResponseCode": 404,
 "internalResponseCode": 101,
 "message": "Request failed: Unable to retrieve data from controller\n  Path: /status/syslog/servers/name\n  ResponseCode: 101 (Path not found)\n",
 "recurse": False,
 "requestPath": "/status/syslog/servers/name"}

GET (list children)

curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/status/syslog/servers/name?op=list

GET Response

{"httpResponseCode": 404,
 "internalResponseCode": 101,
 "message": "Request failed: Unable to retrieve data from controller\n  Path: /status/syslog/servers/name\n  ResponseCode: 101 (Path not found)\n",
 "recurse": False,
 "requestPath": "/status/syslog/servers/name"}

GET (recursively list children)

curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/status/syslog/servers/name?level=recurse

POST

curl -b cookie.jar –data @data.json -k -H “Content-Type: application/json” -X POST https://10.1.2.3:8443/lrs/api/v1.0/status/syslog/servers/name

POST Response

{"httpResponseCode": 200,
  "requestPath": "/status/syslog/servers/name",
  "recurse":false}
  1. /status/syslog/servers/<server_name> 1. Parameters 2. Data Key
    1. Data Type
    2. Default Data Value 3. Default Allowed 4. Request Methods 5. Related 6. Examples